var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("LocalStorage"),
    a = (function () {
        function e() {}
        return (
            (e.prototype.initAd = function () {
                window.h5api.isLogin(), this.startLogin();
            }),
            (e.prototype.startLogin = function () {
                window.h5api.login(function (e) {
                    console.log("XminigameSDK", "m4399mini 登录成功", JSON.stringify(e)),
                        n.default.setData("userId", e.uId),
                        n.default.setData("userType", "1"),
                        n.default.setData("nickName", e.userName);
                    var t = window.h5api.getUserAvatar(e.uId);
                    n.default.setData("avatarUrl", t);
                });
            }),
            (e.prototype.loginSucc = function () {}),
            (e.prototype.loginFail = function () {}),
            (e.prototype.mustLogin = function (e) {
                e(!1);
            }),
            e
        );
    })();
o.default = a;
